<!DOCTYPE html>
<html lang="it">
  <head>
    <meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
    <title>
<?php 
include(SYSTEM_ROOT . "lib/gestore_lingue.php");
$tipo_class="T";
$sesso="D";
$citta=0;
if(isset($_GET['id_citta']))
{
    $citta = $_GET['id_citta'];
}

if(isset($_GET['citta']))
{
	$nome_citta = $_GET['citta'];
	if(isset($_GET['npage']))
		$npage = $_GET['npage'];
	else
		$npage = "";
	
	$page->ShowMetaTagCitta($sesso, $tipo_class, $nome_citta, $npage); 
	//$page->_pageTitle;
}	
else
{
	$nome_citta = "";	
	if(isset($_GET['npage']) && $_GET['npage']!="1")
	{
		$meta_npage = " - pagina ".$_GET['npage']; 
		$meta_key_npage = ", pagina ".$_GET['npage']; 
	} else {
		$meta_npage = "";	
		$meta_key_npage = ""; 
	}	
	$page->_pageTitle = $TITLE_MIGLIORI_ANNUNCI_TOP.$meta_npage; 
	$page->_pageDescription = $DESC_MIGLIORI_ANNUNCI_TOP.$meta_npage; 
}	

echo($page->_pageTitle);
?>
    </title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="<?php echo($page->_pageDescription);?>" />
    <meta name="author" content=""/>
    <link rel="canonical" href="http://www.escortfashion.com/annunci/top-escort"/>
    <link href="http://static.escortfashion.com/css/bootstrap.css" rel="stylesheet" />
    <link href="http://static.escortfashion.com/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="http://static.escortfashion.com/css/docs.css" rel="stylesheet">
    <link rel="stylesheet" type="text/css" href="http://static.escortfashion.com/css/line_horizontal_buttons_100.css" />
    <!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
    <!--[if lt IE 9]>
      <script src="http://static.escortfashion.com/js/html5shiv.js"></scrit>
    <![endif]-->
    <!-- Fav and touch icons -->
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://static.escortfashion.com/ico/apple-touch-icon-144-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://static.escortfashion.com/ico/apple-touch-icon-114-precomposed.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://static.escortfashion.com/ico/apple-touch-icon-72-precomposed.png">
    <link rel="apple-touch-icon-precomposed" href="http://static.escortfashion.com/ico/apple-touch-icon-57-precomposed.png">
    <link rel="shortcut icon" href="http://static.escortfashion.com/ico/favicon.png">
  </head>
  <body  data-spy="scroll" data-target=".bs-docs-sidebar">
<!-- header -->	
    <header>
<!-- menu -->
    <? include("inc-header.php");?>
<!-- fine menu -->    
<!-- inizio Escort banner -->    
    <? include("inc-banner-header.php");?>
<!-- fine Escort banner -->  
</header>
<!-- fine header -->   

  <div class="container">

    <!-- Docs nav
    ================================================== -->
    <div class="row">
      <div class="span3 bs-docs-sidebar">
        <ul class="nav nav-list bs-docs-sidenav">
          <li><a href="#"><i class="fa fa-chevron-right cccc"></i> Novit�</a></li>
          <li><a href="#"><i class="fa fa-chevron-right cccc"></i> Ragazza del mese</a></li>
          <li><a href="#"><i class="fa fa-chevron-right cccc"></i> Sogni proibiti</a></li>
          <!--<li><a href="#what-next"><i class="fa-chevron-right cccc"></i> Escort Catania</a></li>-->
          <li><a href="#"><i class="fa fa-chevron-right cccc"></i> Speciale escort Milano</a></li>
          <li><a href="#"><i class="fa fa-chevron-right cccc"></i> Speciale escort Roma</a></li>
        </ul>
      </div>
      <div class="span9">
<!-- content -->

<?php
include(SYSTEM_ROOT . "lib/gestore_lingue.php");
include_once SYSTEM_ROOT . 'lib/translate.class.php';
$translate = new Translate();
?>
<script type="text/javascript">
	function GoToCityBySesso(citta, sesso) { 
		id_citta = citta.value;
		nome_citta = citta.options[citta.selectedIndex].text;
		switch (nome_citta.toUpperCase())
		{
		  case 'MILANO': nome_citta='<?=$MILANO?>';
					break;
		  case 'ROMA': nome_citta='<?=$ROMA?>';
					break;
		  case 'TORINO': nome_citta='<?=$TORINO?>';
					break;
		  case 'FIRENZE': nome_citta='<?=$FIRENZE?>';
					break;
		  default:  nome_citta=nome_citta;
		}
		nome_citta = nome_citta.replace(/ /g,"-");

        if(id_citta==0)			
            document.location.href="<?=$_SESSION['lingua_url'].$HREF_ANNUNCI_TOP_ESCORT?>";	
        else
            document.location.href="<?=$_SESSION['lingua_url']?>"+id_citta+"/<?=$HREF_LISTA_ANNUNCI_TOP_ESCORT?>/"+nome_citta;
	}
</script>
<?php
$page = new Frontend();
$descrSesso = $TOP_ESCORT;
$descrSessoSingolare = ucfirst($TOP_ESCORT);
$hrefList = $_SESSION['lingua_url']."$HREF_ANNUNCI_TOP_ESCORT";
$hrefListCitta = $_SESSION['lingua_url']."$citta/$HREF_LISTA_ANNUNCI_TOP_ESCORT/$nome_citta"; 
	
if($citta!=0)
{
	$citta_space = str_replace("-", " ", $nome_citta);
	$hrefListCitta = '<a href="'.$hrefListCitta.'">'.$citta_space.'</a>';
	$titolo_citta = $DI.$citta_space;
}
else
{
	$hrefListCitta = "";
	$titolo_citta = $DI_ITALIA;
}   	
?>	

<!-- fine content -->
        <!-- Download
        ================================================== -->
        <section id="download-bootstrap">
<ul class="breadcrumb">
  <li><a href="/homepage.php" title="Vai alla homepage">Home</a> <span class="divider">/</span></li>
  <li><a href="/<?=$HREF_HOME?>" title="<?=ucfirst($ANNUNCI)?>"><?=ucfirst($ANNUNCI)?></a> <span class="divider">/</span></li>
  <li><a href="<?=$hrefList; ?>" title="<?=$descrSesso; ?>"><?=$descrSesso; ?></a> <span class="divider">/</span></li>
  <li class="active"><?=$hrefListCitta;?></li>
  <li class="pull-right"><a href="/en/escorts" title="Escort listing"><img src="http://static.escortfashion.com/images/1.gif" width="24" height="18" alt="Escort listing" class="sprite-flag h18 english"></a><a href="/es/escort" title="Anuncios escort"><img src="http://static.escortfashion.com/images/1.gif" width="24" height="18" alt="Anuncios Escort" class="sprite-flag h18 spanish"></a></li>
</ul>
<div class="page-header">

          <div class="pull-right">
 <?=$CITTA?>: <select name="citta" class="input-medium" onchange="GoToCityBySesso(this, '<?=$sesso;?>')">
            <option value="0" selected="selected"><?=$TUTTE?></option>
            <?php
			$obj = new Main();
			$id_citta_sel = $citta;
			$res = $page->ReadProfileCitiesBySesso($sesso, $tipo_class);
			while ($row = mysql_fetch_array($res))
			{    
				$id_citta = $row["id_citta"];
				//$nome = stripslashes($row["nome"])." (".$row["provincia"].")";   
				$nome = stripslashes($row["nome"]); 
				$nome = $translate->TranslateCityName($nome);
				?>
                <option value="<?=$id_citta?>" <?=(($id_citta==$id_citta_sel)? "selected" : "")?>><?=$nome?></option>
                <?php
			}
			mysql_free_result($res); 
			?>
          </select>
            
     </div>
      <h2><img src="http://static.escortfashion.com/images/1.gif" class="sprite big-icons heart" alt="Hot Fashion" /><?=ucfirst($ANNUNCI).' '.$descrSesso.$titolo_citta ?></h2>  
     </div>
          
          <div><p class="f16"><?=$ANNUNCI_DELLE_MIGLIORI.'<strong>'.$descrSesso.$titolo_citta.'</strong>' ?>.</p></div>
            <ul class="thumbnails">
<?php
    $res = $page->ReadProfilesListData($sesso, $tipo_class, 40); 
    while ($row = mysql_fetch_array($res))
    {    
        $nome = stripslashes($row['nome']);
		
		if($nome=="") {
			$nome = $row['username'];
		}
			
		$user_id = $row['user_id'];
		$citta = $translate->TranslateCityName($row['citta']);
		if($citta==""){
			$citta = $ITALIA;
		}	
		
		if($citta == 0)
			$citta_di_ricerca = $citta;
		else
			$citta_di_ricerca = $nome_citta;
			
		$title = $nome." ".$descrSessoSingolare." ".$citta_di_ricerca;//$citta; Metto la citt� del filtro per i profili multi;
		
		$nome_foto_principale = $row['nome_foto_principale'];
        $nome_url = $obj->CleanStringForUrl($nome);
		$citta_url = $obj->CleanStringForUrl($citta);
				
        $href = $_SESSION['lingua_url']."$user_id/$HREF_ANNUNCI_ESCORT/$citta_url/$nome_url";
        $sommario = ($citta>0 ? $row["sommario_d_lux"] : "");

		?>         

            <li class="span3">
              <a href="<?=$href; ?>" title="<?=$title?>" class="thumbnail">
              	<figure class="label inside bottom float" data-label="<?=$title?>">
                <img src="http://static.escortfashion.com/image.php?width=260&amp;height=325&amp;image=/images/users/box/<?=$nome_foto_principale?>" alt="<?=$title?>" width="260" height="325" class="lazy">
                </figure>
              </a>
            </li><!-- <?=$citta_di_ricerca;//$citta; Metto la citt� del filtro per i profili multi citt�?> -->
          
        <?		
    }
    mysql_free_result($page->_res); 
	?> 
          
          </ul>
          <div class="row-fluid"><? include("paginazione.php"); ?>  
        	<div><?=$TOTALE_PROFILI?> <?=$page->_n_row[0];?></div>
          </div>
        </section>

          <div class="page-header">
              <div class="paginazione">
            <h1>Vuoi pubblicare un annuncio?</h1>
          </div>
          <p class="lead">Pubblicare un annuncio escort su Escortfashion.com &egrave; semplice e veloce, ti bastano due minuti. Per saperne di pi&ugrave; leggi le nostre linee guida, oppure procedi direttamente alla pubblicazione.</p>
          <a class="btn btn-large btn-fashion" href="./scaffolding.html" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);">Scopri come pubblicare</a>
          <a class="btn btn-large" href="./customize.html" style="margin-left: 5px;" onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);">Pubblica il tuo annuncio</a>
      </div>
    </div>

  </div>
<br class="clearfix">
<!-- footer -->
<footer class="footer">
  <? include("inc-footer.php"); ?> 
</footer>  
<!-- fine footer -->

<!-- Le javascript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script type="text/javascript" src="http://static.escortfashion.com/js/jquery-1.9.1.min.js"></script>
    <script type="text/javascript" src="http://static.escortfashion.com/js/jquery.easing.1.3.js"></script>
    <script type="text/javascript" src="http://static.escortfashion.com/js/jquery.mousewheel.js"></script>
    <script type="text/javascript" src="http://static.escortfashion.com/js/jquery.thumbGallery.min.js"></script>
    <script src="http://static.escortfashion.com/js/jquery.lazyload.js"></script>
    <script src="http://static.escortfashion.com/js/bootstrap.min.js"></script>
	<script src="http://static.escortfashion.com/js/application.js"></script>
 	<script type="text/javascript">
		 $(document).ready(function () {
        var url = window.location;
    // Will only work if string in href matches with location
        $('ul.nav a[href="' + url + '"]').parent().addClass('active');

    // Will also work for relative and absolute hrefs
        $('ul.nav a').filter(function () {
            return this.href == url;
        }).parent().addClass('active').parent().parent().addClass('active');
    });
	</script>
	<script type="text/javascript">
	jQuery(document).ready(function(){
	$("img").lazyload({
	failurelimit : 50,
	effect : "fadeIn"
	});
});
	</script>
    <script type="text/javascript">
		
			function thumbGallerySetupDone(){
				//function called when component is ready to receive public function calls
				//console.log('thumbGallerySetupDone');
			}
		
			function detailActivated(){
				//function called when prettyphoto is opened
				//console.log('detailActivated');
			}
			
			function detailClosed(){
				//function called when prettyphoto is closed
				//console.log('detailClosed');
			}
			
			function overThumb(i,j){
				//function called when mouse over thumb holder (plus returned item number: i = first level, j = second level)
				//console.log('overThumb: ', i,' , ', j);
			}
			
			function outThumb(i, j){
				//function called when mouse out thumb holder (plus returned item number: i = first level, j = second level)
				//console.log('outThumb: ', i,' , ', j);
			}
			
			jQuery(document).ready(function($) {
					  
				$('#componentWrapper').thumbGallery({	
					/* GENERAL */
					/*layoutType: grid/line */
					layoutType: 'line',
					/*thumbOrientation: horizontal/vertical */
					thumbOrientation: 'horizontal',
					/*moveType: scroll/buttons */
					moveType: 'buttons',
					
					/*scrollOffset: how much to move scrollbar and scrolltrack off the content (enter 0 or above) */
					scrollOffset: 0,
					
					/* GRID SETTINGS */
					/*verticalSpacing:  */
					verticalSpacing: 10,
					/*horizontalSpacing:  */
					horizontalSpacing: 10,
					/*buttonSpacing: button spacing from the grid itself */
					buttonSpacing: 10,
					/*direction: left2right/top2bottom (direction in which boxes are listed) */
					direction: 'left2right',
					
					/* INNER SLIDESHOW */
					/*innerSlideshowDelay: slideshow delay for inner items in seconds, random value between: 'min, max', 
					enter both number the same for equal time delay like for example 2 seconds: '2,2' */
					innerSlideshowDelay:[2,4],
					/*innerSlideshowOn: autoplay inner slideshow, true/false */
					innerSlideshowOn:false
				});		
		   
		   });
		
        </script>

</body>
</html>
